package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.modular.basic.entity.ArchiveLayer;
import cn.stylefeng.guns.modular.basic.model.params.ArchiveLayerParam;
import cn.stylefeng.guns.modular.basic.model.result.ArchiveLayerResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案层信息 Mapper 接口
 * </p>
 *
 * @author blesslp
 * @since 2019-11-17
 */
public interface ArchiveLayerMapper extends BaseMapper<ArchiveLayer> {

    /**
     * 获取列表
     *
     * @author blesslp
     * @Date 2019-11-17
     */
    List<ArchiveLayerResult> customList(@Param("paramCondition") ArchiveLayerParam paramCondition);

    /**
     * 获取map列表
     *
     * @author blesslp
     * @Date 2019-11-17
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ArchiveLayerParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author blesslp
     * @Date 2019-11-17
     */
    Page<ArchiveLayerResult> customPageList(@Param("page") Page page, @Param("paramCondition") ArchiveLayerParam paramCondition);

    /**
     * 查询一个
     * @param param
     * @return
     */
    ArchiveLayerResult findBySpec(@Param("paramCondition") ArchiveLayerParam param);
                       /**
                        * 获取分页map列表
                        *
                        * @author blesslp
                        * @Date 2019-11-17
                        */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ArchiveLayerParam paramCondition);


    /**
     * 获取档案层的数据
     * @param param
     * @return
     */
    List<ZTreeNode> tree(@Param("paramCondition") ArchiveLayerParam param);

    String getMaxCode(@Param("ssdasid")String ssdasid, @Param("ssdagid")String ssdagid);
}
